package battle.battleFightData
{
	public class BattleAttackerData implements XMLSerializable
	{
		private var _actionName:String;
		private var _offsetX:Number;
		private var _offsetY:Number;
		private var _isReverse:Boolean;
		
		public function BattleAttackerData() 
		{
			
		}
		
		public function get isReverse():Boolean
		{
			return _isReverse;
		}

		public function set isReverse(value:Boolean):void
		{
			_isReverse = value;
		}

		public function get offsetY():Number
		{
			return _offsetY;
		}

		public function set offsetY(value:Number):void
		{
			_offsetY = value;
		}

		public function get offsetX():Number
		{
			return _offsetX;
		}

		public function set offsetX(value:Number):void
		{
			_offsetX = value;
		}

		public function get actionName():String
		{
			return _actionName;
		}

		public function set actionName(value:String):void
		{
			_actionName = value;
		}

		public function toXml():XML
		{
//			var xmlObj:XML;
//			if(this.type == "target")
//			{
//				xmlObj = <target/>;
//			}
//			else
//			{
//				xmlObj = <fighter/>;
//			}
//			
//			xmlObj.@actionName = _actionName;
//			xmlObj.@offsetX = toRoundString(_offsetX);
//			xmlObj.@offsetY = toRoundString(_offsetY);
//			trace(scaleX);
//			xmlObj.@isReverse = _isReverse;
//			return xmlObj;
			return null;
		}
		
		public function fromXml(xml:XML):void
		{
			this._actionName = xml.@actionName;
			this._offsetX = xml.@offsetX;
			this._offsetY = xml.@offsetY;
			this._isReverse = xml.@isReverse;
		}
	}
}